Sets current constant data in a render pipeline. More...
#include <kanzi/gfx/commands.hpp>
Public Member Functions | |
| ConstantDataCommand () | |
| Constructor. | |
Public Member Functions inherited from kanzi::gfx::BaseCommand | |
| uint32_t | getSize () const |
| Gets the command size in bytes. | |
| uint8_t | getTag () const |
| Gets the command tag. | |
| CommandType | getType () const |
| Gets the command type. | |
| void | setTag (uint8_t tag) |
| Sets the command tag. | |
Public Attributes | |
| array< byte, gfx::limits::ConstantDataSize > | data |
| The constant data. | |
Additional Inherited Members | |
Protected Member Functions inherited from kanzi::gfx::BaseCommand | |
| BaseCommand (CommandType t, uint32_t s) | |
| Constructor. | |
| BaseCommand (const BaseCommand &other) | |
| Copy Constructor. | |
| BaseCommand & | operator= (const BaseCommand &other) |
| Assignment operator. | |
Sets current constant data in a render pipeline.
Kanzi uses the constant data for all draw commands until either another constant data command, or the end of the render pipeline.
|
inline |
Constructor.
| array<byte, gfx::limits::ConstantDataSize> kanzi::gfx::ConstantDataCommand::data |
The constant data.
The data must follow the layout rules defined in the shader or reflection information. You can use the reflection::UniformBlockBuilder to assist with data layout.